/*
 * Site Stylesheet — Taoli World Dance Competition (PACDA)
 * De-duplicated & formatted
 */

*,
*::after,
*::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple: #7b3fa0;
    --purple-dark: #4a1878;
    --purple-light: #a855c8;
    --purple-pale: #f8f5fc;
    --gold: #c8a84b;
    --gold-light: #e2c97e;
    --text: #2d2025;
    --muted: #6b5f6f;
    --border: #e0d4ee;
    --white: #fff;
    --bg: #f8f5fc;
    --footer-bg: #1e1528;
    --sans: 'Poppins',sans-serif;
    --max-w: 1200px;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(74,24,120,.10);
    --shadow-lg: 0 14px 44px rgba(74,24,120,.20);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.top-bar {
    background: var(--purple-dark);
    padding: 5px 0;
}

    .top-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.top-bar-left {
    font-size: 12px;
    color: rgba(255,255,255,.7);
}

    .top-bar-left a {
        color: #e2c97e;
    }

.top-bar-right {
    display: flex;
    gap: 14px;
}

    .top-bar-right a {
        font-size: 12px;
        color: rgba(255,255,255,.75);
        transition: color .2s;
    }

        .top-bar-right a.active,
        .top-bar-right a:hover {
            color: #fff;
        }

        .top-bar-right a.active {
            font-weight: 700;
            border-bottom: 1px solid rgba(255,255,255,.55);
        }

.site-header {
    background: var(--white);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

.site-logo img {
    height: 62px;
    width: auto;
}

.header-tagline {
    font-size: 14px;
    color: var(--purple);
    text-align: center;
    flex: 1;
    padding: 0 16px;
    line-height: 1.45;
}

@media (max-width:860px) {

    .header-tagline {
        display: none;
    }
}

.header-register {
    background: var(--purple);
    color: #fff;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s;
}

    .header-register:hover {
        background: var(--purple-light);
    }

.main-nav {
    background: var(--purple);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 3px 14px rgba(0,0,0,.28);
}

    .main-nav .container {
        display: flex;
        align-items: stretch;
    }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 16px;
    flex-direction: column;
    gap: 5px;
    align-self: center;
}

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }

.nav-list {
    display: flex;
    align-items: stretch;
    flex: 1;
}

    .nav-list > li {
        position: relative;
        display: flex;
        align-items: stretch;
    }

        .nav-list > li > a {
            display: flex;
            align-items: center;
            color: rgba(255,255,255,.92);
            padding: 14px 15px;
            font-size: 13.5px;
            font-weight: 600;
            white-space: nowrap;
            letter-spacing: .02em;
            transition: background .2s,color .15s;
        }

            .nav-list > li:hover > a,
            .nav-list > li > a.active,
            .nav-list > li > a:hover {
                background: rgba(255,255,255,.15);
                color: #fff;
            }

.caret {
    margin-left: 5px;
    font-size: 10px;
    opacity: .75;
    display: inline-block;
    transition: transform .2s;
}

.nav-list > li:hover > a .caret {
    transform: rotate(180deg);
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 28px rgba(0,0,0,.16);
    border-top: 3px solid var(--gold);
    z-index: 300;
}

.nav-list li:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 13.5px;
    border-bottom: 1px solid #f0e8f8;
    transition: background .15s,color .15s;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background: var(--purple-pale);
    color: var(--purple);
}

@media (max-width:900px) {

    .nav-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

        .nav-list.open {
            display: flex;
        }

    .main-nav .container {
        flex-wrap: wrap;
    }

    .nav-list > li {
        flex-direction: column;
        align-items: stretch;
    }

        .nav-list > li > a {
            padding: 12px 20px;
        }

    .dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--gold);
        background: rgba(0,0,0,.18);
        margin-left: 16px;
    }

        .dropdown li a {
            color: rgba(255,255,255,.85);
            border-color: rgba(255,255,255,.08);
        }

            .dropdown li a:hover {
                background: rgba(255,255,255,.1);
                color: #fff;
            }
}

.site-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,.72);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1fr;
    gap: 44px;
    padding-bottom: 50px;
}

@media (max-width:768px) {

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    font-size: 13px;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(200,168,75,.35);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.85;
}

.footer-col a {
    color: rgba(255,255,255,.68);
    transition: color .2s;
}

    .footer-col a:hover {
        color: var(--gold-light);
    }

.footer-logo img {
    height: 52px;
    margin-bottom: 14px;
}

.footer-email {
    font-size: 13.5px;
    margin-bottom: 18px;
}

    .footer-email a {
        color: var(--gold-light);
    }

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

    .social-links a {
        background: rgba(255,255,255,.08);
        color: rgba(255,255,255,.78);
        padding: 6px 13px;
        border-radius: 4px;
        font-size: 12.5px;
        font-weight: 600;
        transition: background .2s,color .2s;
    }

        .social-links a:hover {
            background: var(--gold);
            color: #1a1a1a;
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    padding: 18px 0;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255,255,255,.38);
}

.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    background: var(--purple);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,.22);
    cursor: pointer;
    transition: background .2s,transform .2s;
    z-index: 999;
    text-decoration: none;
}

    .back-to-top:hover {
        background: var(--purple-light);
        transform: translateY(-3px);
    }

/* ── auth layout ── */

.auth-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #f3eef9 0%, #ede5f7 40%, #e8ddf6 100%);
    padding: 52px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .auth-bg::before {
        content: '';
        position: absolute;
        width: 520px;
        height: 520px;
        top: -160px;
        left: -120px;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle, rgba(123,63,160,.10) 0%, transparent 70%);
    }

    .auth-bg::after {
        content: '';
        position: absolute;
        width: 400px;
        height: 400px;
        bottom: -100px;
        right: -80px;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle, rgba(200,168,75,.12) 0%, transparent 70%);
    }

.auth-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.auth-card-header {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
    padding: 32px 36px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    text-align: center;
}

@media (max-width:600px) {

    .auth-card-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .auth-card-body {
        padding: 24px 20px;
    }
}

.auth-card-header .logo-wrap img {
    height: 52px;
    filter: brightness(0) invert(1);
    opacity: .92;
    margin: 0 auto;
}

.auth-card-header-text h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 5px;
}

.auth-card-header-text p {
    font-size: 13.5px;
    opacity: .80;
}

.auth-card-body {
    padding: 32px 36px 28px;
}

/* progress steps */

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2.5px solid var(--border);
    background: var(--white);
    color: var(--muted);
    transition: all .3s;
    z-index: 1;
    position: relative;
}

.step.active .step-circle {
    border-color: var(--purple);
    background: var(--purple);
    color: #fff;
}

.step.done .step-circle {
    border-color: #2d8a5e;
    background: #2d8a5e;
    color: #fff;
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.step.active .step-label {
    color: var(--purple);
}

.step.done .step-label {
    color: #2d8a5e;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-top: -28px;
    /* align with circles */ z-index: 0;
    transition: background .3s;
}

    .step-line.done {
        background: #2d8a5e;
    }

/* form grid */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

@media (max-width:560px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .role-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--purple-dark);
    text-transform: uppercase;
    letter-spacing: .07em;
    display: block;
    margin-bottom: 6px;
}

    .form-label .req {
        color: #c0392b;
        margin-left: 2px;
    }

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    opacity: .55;
}

.form-input,
.form-select {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--sans);
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

    .form-input:focus,
    .form-select:focus {
        border-color: var(--purple);
        box-shadow: 0 0 0 3px rgba(123,63,160,.12);
    }

    .form-input::placeholder {
        color: #bbb;
    }

.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237b3fa0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

    .form-input.invalid,
    .form-select.invalid {
        border-color: #c0392b;
        box-shadow: 0 0 0 3px rgba(192,57,43,.10);
    }

.field-error {
    font-size: 12px;
    color: #c0392b;
    margin-top: 5px;
    display: none;
}

.field-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* password strength */

.pw-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin-top: 8px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width .3s, background .3s;
}

.pw-strength-label {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

/* toggle password */

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: .5;
    transition: opacity .2s;
    padding: 2px 4px;
}

    .toggle-pw:hover {
        opacity: .9;
    }

/* role cards */

.role-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 2px;
}

.role-card {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: var(--white);
    position: relative;
}

    .role-card:hover {
        border-color: var(--purple);
        background: var(--purple-pale);
    }

    .role-card input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .role-card.selected {
        border-color: var(--purple);
        background: var(--purple-pale);
        box-shadow: 0 0 0 3px rgba(123,63,160,.12);
    }

.role-icon {
    font-size: 24px;
    margin-bottom: 6px;
    display: block;
}

.role-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--purple-dark);
}

.role-card.selected .role-name {
    color: var(--purple);
}

/* check */

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.55;
    cursor: pointer;
}

    .check-label input {
        width: 15px;
        height: 15px;
        accent-color: var(--purple);
        cursor: pointer;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .check-label a {
        color: var(--purple);
        font-weight: 600;
    }

        .check-label a:hover {
            text-decoration: underline;
        }

/* step panes */

.step-pane {
    display: none;
}

    .step-pane.active {
        display: block;
    }

/* nav buttons */

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-back {
    padding: 11px 28px;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--sans);
    transition: all .2s;
}

    .btn-back:hover {
        border-color: var(--purple);
        color: var(--purple);
        background: var(--purple-pale);
    }

.btn-next,
.btn-submit {
    padding: 11px 32px;
    border-radius: 6px;
    background: var(--purple);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    font-family: var(--sans);
    box-shadow: 0 4px 16px rgba(123,63,160,.32);
    transition: background .2s, transform .15s, box-shadow .2s;
    display: flex;
    align-items: center;
    gap: 7px;
}

    .btn-next:hover,
    .btn-submit:hover {
        background: var(--purple-light);
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(123,63,160,.42);
    }

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* success pane */

#pane-success {
    text-align: center;
    padding: 20px 0 8px;
}

    #pane-success .success-icon {
        font-size: 56px;
        margin-bottom: 16px;
    }

    #pane-success h2 {
        font-size: 24px;
        font-weight: 800;
        color: var(--purple-dark);
        margin-bottom: 10px;
        letter-spacing: -.01em;
    }

    #pane-success p {
        font-size: 14.5px;
        color: var(--muted);
        line-height: 1.75;
        max-width: 420px;
        margin: 0 auto 24px;
    }

    #pane-success .cta-group {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    #pane-success .btn-primary {
        padding: 12px 28px;
        background: var(--purple);
        color: #fff;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 4px 16px rgba(123,63,160,.32);
        transition: transform .2s;
    }

        #pane-success .btn-primary:hover {
            transform: translateY(-1px);
        }

    #pane-success .btn-ghost {
        padding: 11px 28px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        border: 1.5px solid var(--border);
        color: var(--muted);
        background: var(--white);
        transition: border-color .2s, color .2s;
    }

        #pane-success .btn-ghost:hover {
            border-color: var(--purple);
            color: var(--purple);
        }

/* auth-footer */

.auth-footer {
    text-align: center;
    padding: 18px 36px 24px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
}

    .auth-footer a {
        color: var(--purple);
        font-weight: 700;
        transition: color .2s;
    }

        .auth-footer a:hover {
            color: var(--purple-light);
        }

/* breadcrumb */

.breadcrumb-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

    .breadcrumb-bar .container {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12.5px;
        color: var(--muted);
    }

    .breadcrumb-bar a {
        transition: color .2s;
    }

        .breadcrumb-bar a:hover {
            color: var(--purple);
        }

    .breadcrumb-bar .sep {
        opacity: .5;
    }

    .breadcrumb-bar .current {
        color: var(--purple);
        font-weight: 600;
    }

.section-divider {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    padding: 6px 0 14px;
    margin-top: 8px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 18px;
}

/* ── Certificate Page ─────────────────────────────────────────────────── */

.cert-page {
    min-height: calc(100vh - 120px);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 60px;
}

.cert-actions {
    width: 100%;
    max-width: 760px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.cert-back-link {
    font-size: 13.5px;
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
}

    .cert-back-link:hover { opacity: .75; }

.cert-print-btn {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 99px;
    border: 2px solid var(--purple);
    background: transparent;
    color: var(--purple);
    cursor: pointer;
    transition: background .15s, color .15s;
}

    .cert-print-btn:hover {
        background: var(--purple);
        color: #fff;
    }

/* ── The certificate card ── */
.cert {
    position: relative;
    width: 100%;
    max-width: 760px;
    background: #fffdf9;
    border-radius: 4px;
    padding: 52px 60px 40px;
    text-align: center;
    box-shadow: 0 8px 48px rgba(74,24,120,.18);
    border: 1px solid rgba(200,168,75,.3);
}

/* Outer decorative border */
.cert::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1.5px solid rgba(200,168,75,.45);
    border-radius: 2px;
    pointer-events: none;
}

/* Corner flourishes */
.cert-corner {
    position: absolute;
    width: 36px;
    height: 36px;
    border-color: var(--gold);
    border-style: solid;
    border-width: 0;
}

.cert-corner-tl { top: 6px; left: 6px;  border-top-width: 3px; border-left-width: 3px; }
.cert-corner-tr { top: 6px; right: 6px; border-top-width: 3px; border-right-width: 3px; }
.cert-corner-bl { bottom: 6px; left: 6px;  border-bottom-width: 3px; border-left-width: 3px; }
.cert-corner-br { bottom: 6px; right: 6px; border-bottom-width: 3px; border-right-width: 3px; }

.cert-header {
    margin-bottom: 20px;
}

.cert-logo {
    height: 72px;
    width: auto;
    margin: 0 auto 12px;
    display: block;
}

.cert-org-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--purple-dark);
}

.cert-series {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
    letter-spacing: .04em;
}

.cert-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 18px 0;
    opacity: .7;
}

.cert-title-line {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--purple-dark);
    margin-bottom: 28px;
    line-height: 1.2;
}

.cert-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cert-presented-to {
    font-size: 13.5px;
    color: var(--muted);
    font-style: italic;
}

.cert-dancers {
    font-size: 28px;
    font-weight: 800;
    color: var(--purple-dark);
    line-height: 1.25;
    letter-spacing: .01em;
}

.cert-for-label {
    font-size: 13.5px;
    color: var(--muted);
    font-style: italic;
    margin-top: 4px;
}

.cert-dance-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
}

.cert-representing {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 2px;
}

    .cert-representing strong {
        color: var(--text);
    }

.cert-entry-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

    .cert-entry-meta span {
        font-size: 11.5px;
        padding: 3px 12px;
        border-radius: 99px;
        background: var(--purple-pale);
        color: var(--purple);
        border: 1px solid rgba(123,63,160,.15);
        font-weight: 500;
    }

/* Award badge */
.cert-award-badge {
    margin: 22px auto 6px;
    padding: 18px 36px;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 200px;
}

.cert-elite  .cert-award-badge { background: linear-gradient(135deg, #f3eaff, #e9d5ff); border: 2px solid #c084fc; }
.cert-platinum .cert-award-badge { background: linear-gradient(135deg, #eaf1fb, #dbeafe); border: 2px solid #93c5fd; }
.cert-gold   .cert-award-badge { background: linear-gradient(135deg, #fdf6e3, #fde68a); border: 2px solid var(--gold); }

.cert-award-icon {
    font-size: 40px;
    line-height: 1;
}

.cert-award-label {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 4px;
}

.cert-elite   .cert-award-label { color: #6b21a8; }
.cert-platinum .cert-award-label { color: #1e40af; }
.cert-gold    .cert-award-label { color: #92610a; }

.cert-award-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-top: 1px;
}

/* Special awards */
.cert-special-awards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.cert-special-chip {
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 99px;
    background: #eaf6f0;
    color: #2d8a5e;
    border: 1px solid #a7f3d0;
    letter-spacing: .03em;
}

.cert-judges-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 20px;
    background: #fdf6e3;
    border: 1px solid rgba(200,168,75,.5);
    border-radius: 6px;
    max-width: 480px;
}

.cert-jc-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: #92610a;
}

.cert-jc-text {
    font-size: 13.5px;
    font-style: italic;
    color: var(--text);
}

/* Footer */
.cert-footer {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cert-competition-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--purple-dark);
    letter-spacing: .03em;
}

.cert-event-detail {
    font-size: 12.5px;
    color: var(--muted);
}

/* Share URL strip */
.cert-url {
    margin-top: 22px;
    padding: 10px 16px;
    background: var(--purple-pale);
    border: 1px solid rgba(123,63,160,.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cert-url-label {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space: nowrap;
}

.cert-url-value {
    font-size: 12.5px;
    color: var(--purple);
    font-weight: 500;
    word-break: break-all;
}

.cert-copy-btn {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 99px;
    border: 2px solid var(--purple);
    background: transparent;
    color: var(--purple);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

    .cert-copy-btn:hover {
        background: var(--purple);
        color: #fff;
    }

/* Print styles */
@page {
    size: letter portrait;
    margin: 0;
}

@media print {
    .no-print,
    .top-bar,
    .site-header { display: none !important; }

    html, body {
        width: 8.5in;
        height: 11in;
        background: #fff;
    }

    .cert-page {
        width: 8.5in;
        height: 11in;
        padding: 0;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cert {
        width: 8.5in;
        height: 11in;
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0.55in 0.75in;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .cert::before { border-color: rgba(200,168,75,.6); }
}

/* ── auth-specific layout ── */

/* subtle decorative circles */

.auth-bg::after,
.auth-bg::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* card top stripe */

.auth-card-header .logo-wrap {
    margin-bottom: 16px;
}

.auth-card-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 5px;
}

.auth-card-header p {
    font-size: 13.5px;
    opacity: .80;
}

@media (max-width:480px) {

    .auth-card-body {
        padding: 24px 20px 20px;
    }

    .auth-card-header {
        padding: 24px 20px 20px;
    }
}

/* form elements */

.form-input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--sans);
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

    .form-input:focus {
        border-color: var(--purple);
        box-shadow: 0 0 0 3px rgba(123,63,160,.12);
    }

    .form-input.no-icon {
        padding-left: 14px;
    }

/* password toggle */

/* remember / forgot row */

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.forgot-link {
    font-size: 13.5px;
    color: var(--purple);
    font-weight: 600;
    transition: color .2s;
}

    .forgot-link:hover {
        color: var(--purple-light);
        text-decoration: underline;
    }

/* submit */

.submit-btn {
    width: 100%;
    padding: 13px;
    background: var(--purple);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--sans);
    cursor: pointer;
    letter-spacing: .03em;
    box-shadow: 0 4px 18px rgba(123,63,160,.35);
    transition: background .2s, transform .15s, box-shadow .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .submit-btn:hover {
        background: var(--purple-light);
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(123,63,160,.42);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

/* divider */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--muted);
    font-size: 12.5px;
}

    .auth-divider::after,
    .auth-divider::before {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

/* social sign-in */

.social-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color .2s, background .2s, box-shadow .2s;
    color: var(--text);
}

    .social-btn:hover {
        border-color: var(--purple);
        background: var(--purple-pale);
        box-shadow: var(--shadow);
    }

.social-icon {
    font-size: 18px;
}

/* bottom link */

/* error state */

.form-input.invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,.10);
}

/* success banner */

.auth-success {
    display: none;
    background: #edf7f2;
    border: 1.5px solid #2d8a5e;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2d6e4a;
    font-weight: 500;
}

/* breadcrumb */
